package com.wyz.note.basics.abstraction;

/**
 * @Description: 小米手机实现类
 * @author: wei yz
 * @Date: 2024/1/14 15:32
 */
public class XiaomiFactory implements AbstractFactory {

    @Override
    public void producePhone() {
        XiaomiPhone xiaomiPhone = new XiaomiPhone();
        xiaomiPhone.produce();
        // 等等其他产品
    }

    @Override
    public void producePad() {
        System.out.println("生产小米平板");
    }
}
